import axios from '@/utils/axios'

export const getLog = (id: string): Promise<ApiResult<SystemLog>> => {
    return axios.get(`system/log/${id}`)
}

export const getLogPage = (pagination: Pagination, params: SystemLog): Promise<ApiResult<Page<SystemLog>>> => {
    return axios.get(`system/log/page/${pagination.page}/${pagination.pageSize}`, { params })
}

export const deleteLog = (id: string): Promise<ApiResult<null>> => {
    return axios.delete(`system/log/${id}`)
}
